<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.4"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>FFmpegKit Linux API: ffmpegkit::FFmpegKit Class Reference</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="../../ffmpeg-kit-icon-v9-small.png"/></td>
  <td id="projectalign">
   <div id="projectname">FFmpegKit Linux API<span id="projectnumber">&#160;5.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.4 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../d2/d25/namespaceffmpegkit.html">ffmpegkit</a></li><li class="navelem"><a class="el" href="../../db/d71/classffmpegkit_1_1_f_fmpeg_kit.html">FFmpegKit</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle"><div class="title">ffmpegkit::FFmpegKit Class Reference</div></div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="../../df/d99/_f_fmpeg_kit_8h_source.html">FFmpegKit.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a801ee8a6735b0096452e050cc52eb84a"><td class="memItemLeft" align="right" valign="top">static std::shared_ptr&lt; <a class="el" href="../../d2/dee/classffmpegkit_1_1_f_fmpeg_session.html">ffmpegkit::FFmpegSession</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d71/classffmpegkit_1_1_f_fmpeg_kit.html#a801ee8a6735b0096452e050cc52eb84a">executeWithArguments</a> (const std::list&lt; std::string &gt; &amp;arguments)</td></tr>
<tr class="separator:a801ee8a6735b0096452e050cc52eb84a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a78eb16ecc7165aca610dec5116d7a172"><td class="memItemLeft" align="right" valign="top">static std::shared_ptr&lt; <a class="el" href="../../d2/dee/classffmpegkit_1_1_f_fmpeg_session.html">ffmpegkit::FFmpegSession</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d71/classffmpegkit_1_1_f_fmpeg_kit.html#a78eb16ecc7165aca610dec5116d7a172">executeWithArgumentsAsync</a> (const std::list&lt; std::string &gt; &amp;arguments, <a class="el" href="../../d2/d25/namespaceffmpegkit.html#afc007c369cdeebeca5cbf663ab966443">FFmpegSessionCompleteCallback</a> completeCallback)</td></tr>
<tr class="separator:a78eb16ecc7165aca610dec5116d7a172"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae88d45d8f88a01cd31f564e42082e903"><td class="memItemLeft" align="right" valign="top">static std::shared_ptr&lt; <a class="el" href="../../d2/dee/classffmpegkit_1_1_f_fmpeg_session.html">ffmpegkit::FFmpegSession</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d71/classffmpegkit_1_1_f_fmpeg_kit.html#ae88d45d8f88a01cd31f564e42082e903">executeWithArgumentsAsync</a> (const std::list&lt; std::string &gt; &amp;arguments, <a class="el" href="../../d2/d25/namespaceffmpegkit.html#afc007c369cdeebeca5cbf663ab966443">FFmpegSessionCompleteCallback</a> completeCallback, <a class="el" href="../../d2/d25/namespaceffmpegkit.html#a961de60de61ed79c2c7dfee08c9fa939">ffmpegkit::LogCallback</a> <a class="el" href="../../d8/d45/_f_fmpeg_kit_config_8cpp.html#a7e70dcb2518bb21bffb91bdd7133d329">logCallback</a>, <a class="el" href="../../d2/d25/namespaceffmpegkit.html#a250a65ad52e13fa88362845eb4b848ef">ffmpegkit::StatisticsCallback</a> <a class="el" href="../../d8/d45/_f_fmpeg_kit_config_8cpp.html#a94447b62a78f7c737729ced2596527d2">statisticsCallback</a>)</td></tr>
<tr class="separator:ae88d45d8f88a01cd31f564e42082e903"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae91e5f7c4e3fa29b02c8b06ae7855353"><td class="memItemLeft" align="right" valign="top">static std::shared_ptr&lt; <a class="el" href="../../d2/dee/classffmpegkit_1_1_f_fmpeg_session.html">ffmpegkit::FFmpegSession</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d71/classffmpegkit_1_1_f_fmpeg_kit.html#ae91e5f7c4e3fa29b02c8b06ae7855353">execute</a> (const std::string command)</td></tr>
<tr class="separator:ae91e5f7c4e3fa29b02c8b06ae7855353"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e37e134521dfe25070b7525cd2cacd4"><td class="memItemLeft" align="right" valign="top">static std::shared_ptr&lt; <a class="el" href="../../d2/dee/classffmpegkit_1_1_f_fmpeg_session.html">ffmpegkit::FFmpegSession</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d71/classffmpegkit_1_1_f_fmpeg_kit.html#a9e37e134521dfe25070b7525cd2cacd4">executeAsync</a> (const std::string command, <a class="el" href="../../d2/d25/namespaceffmpegkit.html#afc007c369cdeebeca5cbf663ab966443">FFmpegSessionCompleteCallback</a> completeCallback)</td></tr>
<tr class="separator:a9e37e134521dfe25070b7525cd2cacd4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b51d19c3ff1ec7955eb40661e6fa7d9"><td class="memItemLeft" align="right" valign="top">static std::shared_ptr&lt; <a class="el" href="../../d2/dee/classffmpegkit_1_1_f_fmpeg_session.html">ffmpegkit::FFmpegSession</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d71/classffmpegkit_1_1_f_fmpeg_kit.html#a7b51d19c3ff1ec7955eb40661e6fa7d9">executeAsync</a> (const std::string command, <a class="el" href="../../d2/d25/namespaceffmpegkit.html#afc007c369cdeebeca5cbf663ab966443">FFmpegSessionCompleteCallback</a> completeCallback, <a class="el" href="../../d2/d25/namespaceffmpegkit.html#a961de60de61ed79c2c7dfee08c9fa939">ffmpegkit::LogCallback</a> <a class="el" href="../../d8/d45/_f_fmpeg_kit_config_8cpp.html#a7e70dcb2518bb21bffb91bdd7133d329">logCallback</a>, <a class="el" href="../../d2/d25/namespaceffmpegkit.html#a250a65ad52e13fa88362845eb4b848ef">ffmpegkit::StatisticsCallback</a> <a class="el" href="../../d8/d45/_f_fmpeg_kit_config_8cpp.html#a94447b62a78f7c737729ced2596527d2">statisticsCallback</a>)</td></tr>
<tr class="separator:a7b51d19c3ff1ec7955eb40661e6fa7d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adffdb985f9d0d0c62e5258719eb16e95"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d71/classffmpegkit_1_1_f_fmpeg_kit.html#adffdb985f9d0d0c62e5258719eb16e95">cancel</a> ()</td></tr>
<tr class="separator:adffdb985f9d0d0c62e5258719eb16e95"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a15bd5828787355c192b68ab594f02175"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d71/classffmpegkit_1_1_f_fmpeg_kit.html#a15bd5828787355c192b68ab594f02175">cancel</a> (const long sessionId)</td></tr>
<tr class="separator:a15bd5828787355c192b68ab594f02175"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a77729f9b4d54caa00602be422a4c0fa9"><td class="memItemLeft" align="right" valign="top">static std::shared_ptr&lt; std::list&lt; std::shared_ptr&lt; <a class="el" href="../../d2/dee/classffmpegkit_1_1_f_fmpeg_session.html">ffmpegkit::FFmpegSession</a> &gt; &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d71/classffmpegkit_1_1_f_fmpeg_kit.html#a77729f9b4d54caa00602be422a4c0fa9">listSessions</a> ()</td></tr>
<tr class="separator:a77729f9b4d54caa00602be422a4c0fa9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p >Main class to run <code>FFmpeg</code> commands. Supports executing commands both synchronously and asynchronously. </p><pre>
auto session = <a class="el" href="../../db/d71/classffmpegkit_1_1_f_fmpeg_kit.html#ae91e5f7c4e3fa29b02c8b06ae7855353">FFmpegKit::execute</a>:("-i file1.mp4 -c:v libxvid file1.avi");

auto asyncSession = <a class="el" href="../../db/d71/classffmpegkit_1_1_f_fmpeg_kit.html#a9e37e134521dfe25070b7525cd2cacd4">FFmpegKit::executeAsync</a>:("-i file1.mp4 -c:v libxvid file1.avi", [](auto session){ ... });
</pre> <p >Provides overloaded <code>execute</code> methods to define session specific callbacks. </p><pre>
auto asyncSession = <a class="el" href="../../db/d71/classffmpegkit_1_1_f_fmpeg_kit.html#a9e37e134521dfe25070b7525cd2cacd4">FFmpegKit::executeAsync</a>:("-i file1.mp4 -c:v libxvid file1.avi, [](auto session){ ... }, [](auto log){ ... }, [](auto statistics){ ... });
</pre> 
<p class="definition">Definition at line <a class="el" href="../../df/d99/_f_fmpeg_kit_8h_source.html#l00044">44</a> of file <a class="el" href="../../df/d99/_f_fmpeg_kit_8h_source.html">FFmpegKit.h</a>.</p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="adffdb985f9d0d0c62e5258719eb16e95" name="adffdb985f9d0d0c62e5258719eb16e95"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adffdb985f9d0d0c62e5258719eb16e95">&#9670;&nbsp;</a></span>cancel() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void ffmpegkit::FFmpegKit::cancel </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p >Cancels all running sessions.</p>
<p >This method does not wait for termination to complete and returns immediately. </p>

<p class="definition">Definition at line <a class="el" href="../../d8/d78/_f_fmpeg_kit_8cpp_source.html#l00068">68</a> of file <a class="el" href="../../d8/d78/_f_fmpeg_kit_8cpp_source.html">FFmpegKit.cpp</a>.</p>

</div>
</div>
<a id="a15bd5828787355c192b68ab594f02175" name="a15bd5828787355c192b68ab594f02175"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a15bd5828787355c192b68ab594f02175">&#9670;&nbsp;</a></span>cancel() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void ffmpegkit::FFmpegKit::cancel </td>
          <td>(</td>
          <td class="paramtype">const long&#160;</td>
          <td class="paramname"><em>sessionId</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p >Cancels the session specified with <code>sessionId</code>.</p>
<p >This method does not wait for termination to complete and returns immediately.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">sessionId</td><td>id of the session that will be cancelled </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="../../d8/d78/_f_fmpeg_kit_8cpp_source.html#l00077">77</a> of file <a class="el" href="../../d8/d78/_f_fmpeg_kit_8cpp_source.html">FFmpegKit.cpp</a>.</p>

</div>
</div>
<a id="ae91e5f7c4e3fa29b02c8b06ae7855353" name="ae91e5f7c4e3fa29b02c8b06ae7855353"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae91e5f7c4e3fa29b02c8b06ae7855353">&#9670;&nbsp;</a></span>execute()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::shared_ptr&lt; <a class="el" href="../../d2/dee/classffmpegkit_1_1_f_fmpeg_session.html">ffmpegkit::FFmpegSession</a> &gt; ffmpegkit::FFmpegKit::execute </td>
          <td>(</td>
          <td class="paramtype">const std::string&#160;</td>
          <td class="paramname"><em>command</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p >Synchronously executes FFmpeg command provided. Space character is used to split command into arguments. You can use single or double quote characters to specify arguments inside your command.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">command</td><td>FFmpeg command </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>FFmpeg session created for this execution </dd></dl>

<p class="definition">Definition at line <a class="el" href="../../d8/d78/_f_fmpeg_kit_8cpp_source.html#l00050">50</a> of file <a class="el" href="../../d8/d78/_f_fmpeg_kit_8cpp_source.html">FFmpegKit.cpp</a>.</p>

</div>
</div>
<a id="a9e37e134521dfe25070b7525cd2cacd4" name="a9e37e134521dfe25070b7525cd2cacd4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9e37e134521dfe25070b7525cd2cacd4">&#9670;&nbsp;</a></span>executeAsync() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::shared_ptr&lt; <a class="el" href="../../d2/dee/classffmpegkit_1_1_f_fmpeg_session.html">ffmpegkit::FFmpegSession</a> &gt; ffmpegkit::FFmpegKit::executeAsync </td>
          <td>(</td>
          <td class="paramtype">const std::string&#160;</td>
          <td class="paramname"><em>command</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d2/d25/namespaceffmpegkit.html#afc007c369cdeebeca5cbf663ab966443">FFmpegSessionCompleteCallback</a>&#160;</td>
          <td class="paramname"><em>completeCallback</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p >Starts an asynchronous FFmpeg execution for the given command. Space character is used to split the command into arguments. You can use single or double quote characters to specify arguments inside your command.</p>
<p >Note that this method returns immediately and does not wait the execution to complete. You must use an FFmpegSessionCompleteCallback if you want to be notified about the result.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">command</td><td>FFmpeg command </td></tr>
    <tr><td class="paramname">completeCallback</td><td>callback that will be called when the execution has completed </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>FFmpeg session created for this execution </dd></dl>

<p class="definition">Definition at line <a class="el" href="../../d8/d78/_f_fmpeg_kit_8cpp_source.html#l00056">56</a> of file <a class="el" href="../../d8/d78/_f_fmpeg_kit_8cpp_source.html">FFmpegKit.cpp</a>.</p>

</div>
</div>
<a id="a7b51d19c3ff1ec7955eb40661e6fa7d9" name="a7b51d19c3ff1ec7955eb40661e6fa7d9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7b51d19c3ff1ec7955eb40661e6fa7d9">&#9670;&nbsp;</a></span>executeAsync() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::shared_ptr&lt; <a class="el" href="../../d2/dee/classffmpegkit_1_1_f_fmpeg_session.html">ffmpegkit::FFmpegSession</a> &gt; ffmpegkit::FFmpegKit::executeAsync </td>
          <td>(</td>
          <td class="paramtype">const std::string&#160;</td>
          <td class="paramname"><em>command</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d2/d25/namespaceffmpegkit.html#afc007c369cdeebeca5cbf663ab966443">FFmpegSessionCompleteCallback</a>&#160;</td>
          <td class="paramname"><em>completeCallback</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d2/d25/namespaceffmpegkit.html#a961de60de61ed79c2c7dfee08c9fa939">ffmpegkit::LogCallback</a>&#160;</td>
          <td class="paramname"><em>logCallback</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d2/d25/namespaceffmpegkit.html#a250a65ad52e13fa88362845eb4b848ef">ffmpegkit::StatisticsCallback</a>&#160;</td>
          <td class="paramname"><em>statisticsCallback</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p >Starts an asynchronous FFmpeg execution for the given command. Space character is used to split the command into arguments. You can use single or double quote characters to specify arguments inside your command.</p>
<p >Note that this method returns immediately and does not wait the execution to complete. You must use an FFmpegSessionCompleteCallback if you want to be notified about the result.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">command</td><td>FFmpeg command </td></tr>
    <tr><td class="paramname">completeCallback</td><td>callback that will be called when the execution has completed </td></tr>
    <tr><td class="paramname">logCallback</td><td>callback that will receive logs </td></tr>
    <tr><td class="paramname">statisticsCallback</td><td>callback that will receive statistics </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>FFmpeg session created for this execution </dd></dl>

<p class="definition">Definition at line <a class="el" href="../../d8/d78/_f_fmpeg_kit_8cpp_source.html#l00062">62</a> of file <a class="el" href="../../d8/d78/_f_fmpeg_kit_8cpp_source.html">FFmpegKit.cpp</a>.</p>

</div>
</div>
<a id="a801ee8a6735b0096452e050cc52eb84a" name="a801ee8a6735b0096452e050cc52eb84a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a801ee8a6735b0096452e050cc52eb84a">&#9670;&nbsp;</a></span>executeWithArguments()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::shared_ptr&lt; <a class="el" href="../../d2/dee/classffmpegkit_1_1_f_fmpeg_session.html">ffmpegkit::FFmpegSession</a> &gt; ffmpegkit::FFmpegKit::executeWithArguments </td>
          <td>(</td>
          <td class="paramtype">const std::list&lt; std::string &gt; &amp;&#160;</td>
          <td class="paramname"><em>arguments</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p >Synchronously executes FFmpeg with arguments provided.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">arguments</td><td>FFmpeg command options/arguments as string list </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>FFmpeg session created for this execution </dd></dl>

<p class="definition">Definition at line <a class="el" href="../../d8/d78/_f_fmpeg_kit_8cpp_source.html#l00032">32</a> of file <a class="el" href="../../d8/d78/_f_fmpeg_kit_8cpp_source.html">FFmpegKit.cpp</a>.</p>

</div>
</div>
<a id="a78eb16ecc7165aca610dec5116d7a172" name="a78eb16ecc7165aca610dec5116d7a172"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a78eb16ecc7165aca610dec5116d7a172">&#9670;&nbsp;</a></span>executeWithArgumentsAsync() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::shared_ptr&lt; <a class="el" href="../../d2/dee/classffmpegkit_1_1_f_fmpeg_session.html">ffmpegkit::FFmpegSession</a> &gt; ffmpegkit::FFmpegKit::executeWithArgumentsAsync </td>
          <td>(</td>
          <td class="paramtype">const std::list&lt; std::string &gt; &amp;&#160;</td>
          <td class="paramname"><em>arguments</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d2/d25/namespaceffmpegkit.html#afc007c369cdeebeca5cbf663ab966443">FFmpegSessionCompleteCallback</a>&#160;</td>
          <td class="paramname"><em>completeCallback</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p >Starts an asynchronous FFmpeg execution with arguments provided.</p>
<p >Note that this method returns immediately and does not wait the execution to complete. You must use an FFmpegSessionCompleteCallback if you want to be notified about the result.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">arguments</td><td>FFmpeg command options/arguments as string list </td></tr>
    <tr><td class="paramname">completeCallback</td><td>callback that will be called when the execution has completed </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>FFmpeg session created for this execution </dd></dl>

<p class="definition">Definition at line <a class="el" href="../../d8/d78/_f_fmpeg_kit_8cpp_source.html#l00038">38</a> of file <a class="el" href="../../d8/d78/_f_fmpeg_kit_8cpp_source.html">FFmpegKit.cpp</a>.</p>

</div>
</div>
<a id="ae88d45d8f88a01cd31f564e42082e903" name="ae88d45d8f88a01cd31f564e42082e903"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae88d45d8f88a01cd31f564e42082e903">&#9670;&nbsp;</a></span>executeWithArgumentsAsync() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::shared_ptr&lt; <a class="el" href="../../d2/dee/classffmpegkit_1_1_f_fmpeg_session.html">ffmpegkit::FFmpegSession</a> &gt; ffmpegkit::FFmpegKit::executeWithArgumentsAsync </td>
          <td>(</td>
          <td class="paramtype">const std::list&lt; std::string &gt; &amp;&#160;</td>
          <td class="paramname"><em>arguments</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d2/d25/namespaceffmpegkit.html#afc007c369cdeebeca5cbf663ab966443">FFmpegSessionCompleteCallback</a>&#160;</td>
          <td class="paramname"><em>completeCallback</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d2/d25/namespaceffmpegkit.html#a961de60de61ed79c2c7dfee08c9fa939">ffmpegkit::LogCallback</a>&#160;</td>
          <td class="paramname"><em>logCallback</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d2/d25/namespaceffmpegkit.html#a250a65ad52e13fa88362845eb4b848ef">ffmpegkit::StatisticsCallback</a>&#160;</td>
          <td class="paramname"><em>statisticsCallback</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p >Starts an asynchronous FFmpeg execution with arguments provided.</p>
<p >Note that this method returns immediately and does not wait the execution to complete. You must use an FFmpegSessionCompleteCallback if you want to be notified about the result.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">arguments</td><td>FFmpeg command options/arguments as string list </td></tr>
    <tr><td class="paramname">completeCallback</td><td>callback that will be called when the execution has completed </td></tr>
    <tr><td class="paramname">logCallback</td><td>callback that will receive logs </td></tr>
    <tr><td class="paramname">statisticsCallback</td><td>callback that will receive statistics </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>FFmpeg session created for this execution </dd></dl>

<p class="definition">Definition at line <a class="el" href="../../d8/d78/_f_fmpeg_kit_8cpp_source.html#l00044">44</a> of file <a class="el" href="../../d8/d78/_f_fmpeg_kit_8cpp_source.html">FFmpegKit.cpp</a>.</p>

</div>
</div>
<a id="a77729f9b4d54caa00602be422a4c0fa9" name="a77729f9b4d54caa00602be422a4c0fa9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a77729f9b4d54caa00602be422a4c0fa9">&#9670;&nbsp;</a></span>listSessions()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::shared_ptr&lt; std::list&lt; std::shared_ptr&lt; <a class="el" href="../../d2/dee/classffmpegkit_1_1_f_fmpeg_session.html">ffmpegkit::FFmpegSession</a> &gt; &gt; &gt; ffmpegkit::FFmpegKit::listSessions </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p >Lists all FFmpeg sessions in the session history.</p>
<dl class="section return"><dt>Returns</dt><dd>all FFmpeg sessions in the session history </dd></dl>

<p class="definition">Definition at line <a class="el" href="../../d8/d78/_f_fmpeg_kit_8cpp_source.html#l00081">81</a> of file <a class="el" href="../../d8/d78/_f_fmpeg_kit_8cpp_source.html">FFmpegKit.cpp</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="../../df/d99/_f_fmpeg_kit_8h_source.html">FFmpegKit.h</a></li>
<li><a class="el" href="../../d8/d78/_f_fmpeg_kit_8cpp_source.html">FFmpegKit.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sat Sep 17 2022 18:38:15 for FFmpegKit Linux API by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.4
</small></address>
</body>
</html>
